package com.wugh.fast.kernel.util.exception;

import com.wugh.fast.kernel.core.enums.EnumInterface;
import com.wugh.fast.kernel.core.enums.FastExceptionEnum;
import com.wugh.fast.kernel.core.exception.FastAbstractException;

import java.io.Serializable;

/**
 * 说明:
 *
 * @author wugh
 * @date 2019-04-12 16:46
 */
public class FastNotRootException extends FastAbstractException {
    @Override
    public EnumInterface<Integer> getExceptionEnum() {
        return FastExceptionEnum.FAST_GLOBAL_EXCEPTION;
    }

    public FastNotRootException(Object rootId, Integer size) {
        super(String.format("通过[%s]遍历数据拿到%s个根节点 ", rootId, size));
    }
}